Nick: <?php echo $user['User']['username']; ?>

<table>
	<tr>
		<td class="actions">
			<?php echo $this->Html->link('Edytuj', array('action' => 'edit', $user['User']['username'])); ?>
			<?php echo $this->Html->link('Pokaż rezerwacje', array('controller'=>'Reservations', 'action' => 'view', $user['User']['username'])); ?>
			<?php 
				if($isAdmin) {
					if($currentUser['id'] != $user['User']['id']){
						if(in_array($user['User']['role'], array('admin', 'superAdmin'))) {
							echo $this->Html->link('Odbierz prawa administratora', array('action' => 'setAdmin', $user['User']['id'], 'regular'));
						} else {
							echo $this->Html->link('Nadaj prawa administratora', array('action' => 'setAdmin', $user['User']['id'], 'admin'));
						}
						if(!$user['User']['activated']) {
							echo $this->Html->link('Aktywuj użytkownika', array('action' => 'activate', $user['User']['id']));
						}
						echo $this->Form->postLink('Usuń', array('action' => 'delete', $user['User']['username']), array('confirm'=>'Are you sure you want to delete that user?'));
					}
				}
			?>
		</td>
	</tr>
</table>